/*
 * StockInfo.java
 *
 * Created on April 15, 2007, 11:22 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package usyd.comp5348;

import java.io.Serializable;

/**
 *
 * @author david
 */
public class StockInfo implements Serializable {
    public static final int UNDEFINED = -1;
    
    private int id;              // unique stock holding id
    private int catalogue_id;	// which video
    private String warehouse;    // which warehouse
    private int holding;	        // how many copies are in stock
    
    public StockInfo(int video_id, String warehouse, int holding) {
        this(UNDEFINED, video_id, warehouse, holding);
    }
    
    public StockInfo(int id, int video_id, String warehouse, int holding) {
        this.setId(id);
        this.setCatalogue_id(video_id);
        this.setWarehouse(warehouse);
        this.setHolding(holding);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCatalogue_id() {
        return catalogue_id;
    }

    public void setCatalogue_id(int catalogue_id) {
        this.catalogue_id = catalogue_id;
    }

    public String getWarehouse() {
        return warehouse;
    }

    public void setWarehouse(String warehouse) {
        this.warehouse = warehouse;
    }

    public int getHolding() {
        return holding;
    }

    public void setHolding(int holding) {
        this.holding = holding;
    }
}
